#pragma once
#include"core/task.h"


typedef struct mutex_t
{
    task_t* owner;
    int locker_count;
    list wait_list;
}mutex_t;

void mutex_init(mutex_t* mutex);
void mutex_lock(mutex_t* mutex);
void mutex_unlock(mutex_t* mutex);
